package com.chaipuyu.entity;

import java.math.BigDecimal;

/**
 * 商品表
 */

public class Goods {

  private Long goodsId; //商品id
  private String goodsAffiliation; //商品归属
  private String goodsName; //商品名称
  private Type type; //类型
  private Brand brand; //品牌
  private String goodsImg; //商品图片
  private String goosModel; //商品型号
  private String goodsSpecification; //商品规格
  private BigDecimal goodsPrice; //商品单价
  private User user; //制单人

  public User getUser() {
    return user;
  }

  public void setUser(User user) {
    this.user = user;
  }

  public Long getGoodsId() {
    return goodsId;
  }

  public void setGoodsId(Long goodsId) {
    this.goodsId = goodsId;
  }

  public String getGoodsAffiliation() {
    return goodsAffiliation;
  }

  public void setGoodsAffiliation(String goodsAffiliation) {
    this.goodsAffiliation = goodsAffiliation;
  }

  public String getGoodsName() {
    return goodsName;
  }

  public void setGoodsName(String goodsName) {
    this.goodsName = goodsName;
  }

  public Type getType() {
    return type;
  }

  public void setType(Type type) {
    this.type = type;
  }

  public Brand getBrand() {
    return brand;
  }

  public void setBrand(Brand brand) {
    this.brand = brand;
  }

  public String getGoodsImg() {
    return goodsImg;
  }

  public void setGoodsImg(String goodsImg) {
    this.goodsImg = goodsImg;
  }

  public String getGoosModel() {
    return goosModel;
  }

  public void setGoosModel(String goosModel) {
    this.goosModel = goosModel;
  }

  public String getGoodsSpecification() {
    return goodsSpecification;
  }

  public void setGoodsSpecification(String goodsSpecification) {
    this.goodsSpecification = goodsSpecification;
  }

  public BigDecimal getGoodsPrice() {
    return goodsPrice;
  }

  public void setGoodsPrice(BigDecimal goodsPrice) {
    this.goodsPrice = goodsPrice;
  }

  public Goods() {
  }

  public Goods(Long goodsId, String goodsAffiliation, String goodsName, Type type, Brand brand, String goodsImg, String goosModel, String goodsSpecification, BigDecimal goodsPrice, User user) {
    this.goodsId = goodsId;
    this.goodsAffiliation = goodsAffiliation;
    this.goodsName = goodsName;
    this.type = type;
    this.brand = brand;
    this.goodsImg = goodsImg;
    this.goosModel = goosModel;
    this.goodsSpecification = goodsSpecification;
    this.goodsPrice = goodsPrice;
    this.user = user;
  }

  public Goods(Long goodsId, String goodsAffiliation, String goodsName, Type type, Brand brand, String goodsImg, String goosModel, String goodsSpecification, BigDecimal goodsPrice) {
    this.goodsId = goodsId;
    this.goodsAffiliation = goodsAffiliation;
    this.goodsName = goodsName;
    this.type = type;
    this.brand = brand;
    this.goodsImg = goodsImg;
    this.goosModel = goosModel;
    this.goodsSpecification = goodsSpecification;
    this.goodsPrice = goodsPrice;
  }

  @Override
  public String toString() {
    return "Goods{" +
            "goodsId=" + goodsId +
            ", goodsAffiliation='" + goodsAffiliation + '\'' +
            ", goodsName='" + goodsName + '\'' +
            ", type=" + type +
            ", brand=" + brand +
            ", goodsImg='" + goodsImg + '\'' +
            ", goosModel='" + goosModel + '\'' +
            ", goodsSpecification='" + goodsSpecification + '\'' +
            ", goodsPrice=" + goodsPrice +
            ", user=" + user +
            '}';
  }
}
